#-------------------------------------------------
#
# Project created by QtCreator 2022-05-24T18:57:17
#
#-------------------------------------------------

QT       -= gui

TARGET = Core
TEMPLATE = lib

DEFINES += CORE_LIBRARY

BUILD_DIR = $$PWD/../../bin/build
BIN_DIR = $$PWD/../../bin
TOOLKIT_DIR = $$PWD/../../Toolkits

INCLUDEPATH += $$TOOLKIT_DIR/boost_1_77_0/

# Configurate compilation output.
CONFIG(debug, debug|release) {
    OBJECTS_DIR = "$$BUILD_DIR/debug/$$TARGET"
    RCC_DIR = "$$BUILD_DIR/debug/$$TARGET"
    MOC_DIR = "$$BUILD_DIR/debug/$$TARGET"
    UI_DIR = "$$BUILD_DIR/debug/$$TARGET"
    DESTDIR = "$$BIN_DIR/debug"
}
CONFIG(release, debug|release) {
    OBJECTS_DIR = "$$BUILD_DIR/release/$$TARGET"
    RCC_DIR = "$$BUILD_DIR/release/$$TARGET"
    MOC_DIR = "$$BUILD_DIR/release/$$TARGET"
    UI_DIR = "$$BUILD_DIR/release/$$TARGET"
    DESTDIR = "$$BIN_DIR/release"
}

SOURCES += core.cpp \
    Log/BoostLogger.cpp \
    Log/Logger.cpp

HEADERS += core.h\
        Log/BoostLogger.h \
        Log/Logger.h \
        core_global.h

# Link boost libraries.
win32:CONFIG(release, debug|release): LIBS += -L$$TOOLKIT_DIR/boost_1_77_0/stage/lib/ -llibboost_serialization-vc120-mt-1_56 -llibboost_log-vc120-mt-1_56
else:win32:CONFIG(debug, debug|release): LIBS += -L$$TOOLKIT_DIR/boost_1_77_0/stage/lib/ -llibboost_serialization-vc141-mt-gd-x32-1_77 -llibboost_log-vc141-mt-gd-x32-1_77

unix {
    target.path = /usr/lib
    INSTALLS += target
}
